Method and system of knowledge based search engine using text mining

ABSTRACT

A method of text mining is disclosed for automatically building text knowledge base. First, the text mining is applied to the web pages downloaded from internet/intranet or other text documents to extract phrases information. Then, the phrases are classified using automatic classification method or using existed classification information. In addition, the weights between the phrases are trained by using the text information in the web pages or the documents. A knowledge base system is built using the text mining results. The knowledge base is used to directly provide knowledge for a search. Also, the knowledge base helps search engine refine search results.

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application is entitled to the benefit of Provisional Patent Application Ser. No. 60/360,247 filed Feb 27, 2002.

FEDERALLY SPONSORED RESEARCH

[0002] Not Applicable

SEQUENCE LISTING OR PROGRAM

[0003] Not Applicable

FIELD OF THE INVENTION

[0004] The present invention relates, generally, to a process, system and article of knowledge discovery using text mining, data mining, machine learning, natural language processing, information indexing, search engine, and pattern recognition.

BACKGROUND OF THE INVENTION

[0005] The advent of the World Wide Web creates new challenges for information processing. The amount of information is growing exponentially, as well as the number of internet users. There are billions web pages and hundreds million users so far. The current internet provides huge amount of information which is beyond the human being's capability to handle it. Also, more and more low quality and redundant information is posted in the internet, which creates even more difficulties to find useful information. Without an efficient way to help human handle the internet/intranet information, more and more money and time will be wasted on the internet information highway.

[0006] Also, with advances in computer technology, network, storage and internet/intranet technologies, vast amounts of information have become readily available throughout the world. Actually, more and more businesses, individuals and institutions rely on computer-accessible information on a daily basis. However, as the total amount of accessible information increases, the ability to find useful information becomes increasingly more difficult.

[0007] Currently, there are three major ways to find internet/intranet information: high quality human maintained directories such as Yahoo!, search engines, and knowledge based search. Human maintained directories cover popular topics effectively but are subjective, expensive to build and maintain, slow to improve. Also, a directory can only cover limited topics.

[0008] Search engines first use special software, referred to as ‘robots’, ‘spiders’ or ‘crawlers’, go out and retrieve web pages. The web pages are parsed to generate keywords to index the pages. Then indexes are stored in a database with a rank for each web page. The rank reflects the relevance of the web pages to certain keywords. When an internet user enters a query with a keyword or keywords, search engines retrieve the web pages which match the keywords in the database.

[0009] Automated search engine usually return too many low quality matches. Most internet portals provide both directory and search engine services for user queries. Although the search engine technologies have been improved in the past several years, people still feel frustrated for internet information search. Often, the wanted information cannot be found or it needs to spend too much time to find it. The search results are a list of web pages that have to be scanned to find useful information. There may be millions web pages for some commonly used words. Also, the search results are the same for different people or for same people at different time. Lastly, the search can only find the web pages that contain the query words, however the new knowledge that is not explicitly contained in web pages cannot be found.

[0010] Knowledge based search is another way to search internet information, such as Ask Jeeves. However, like the directories, such knowledge base is built by people, which is also very costly and difficult to update and maintain, and the knowledge base cannot be very big. Also, the covered knowledge in such system is quite limited.

[0011] For structured data like relational database, knowledge base can be built using data mining methods. Such data mining methods can be implemented with the standard classification, clustering or machine learning algorithms. However, internet/intranet web pages and about 80% corporate information are stored with unstructured text documents like e-mail, news article, technical and patent portfolios. To extract knowledge from text data, some complicated text mining and learning algorithms are required.

[0012] Currently, most text mining researches and developments are still similar to the data mining algorithms and approaches such as standard clustering, classification, predication and decision tree algorithms. However, the problems which text mining has to solve are quite different with data mining. Firstly, for data mining, the samples usually have fixed feature set. In most cases, all samples have the same number of features. For text mining, it is hard to define features for text, or the feature set is huge if each word is considered as a feature. Secondly, it is hard to define what knowledge is for text. For data mining, knowledge is considered as the training results of classification, predication, regression or other functions. However, for text mining, these methods cannot provide enough information for user's query or the retrieved information may not be what user wants. Also, text mining needs very large amount of text information to extract reasonable knowledge. In addition, the accuracy and speed for text mining are also very important for real application.

[0013] Text mining is a relatively new research area and has a lot of challenging problems. However, there are also a lot advantages for the development of text mining technology and method. Firstly, it is easy to collect huge amount of text information from the World Wide Web for analysis. Secondly, a lot of terms have already been manually classified in the web that can be directly used. Also, the internet/intranet users can be directly benefited from the new text mining methods.

SUMMARY OF THE INVENTION

[0014] It is one object of the present invention to automatically build a knowledge base system that provides the most relevant information to user's query. Such knowledge base construction method largely reduces the construction time in comparison with the directory or knowledge base system built by human beings. Also, such knowledge base system can cover more knowledge and easier to maintain than the conventional human made systems.

[0015] The present invention is a text mining method for automatically building knowledge based search system of internet/intranet. Web pages are first downloaded from internet using a crawler. Then they are parsed to generate text files that only include words for the web pages. Unlike search engine to build an index database for the web pages, a text mining method is used to extract knowledge from the web pages and build a knowledge base for the web pages. When user enters a query, the knowledge base retrieves and presents knowledge to the user instead of only providing web pages by search engines. In this way, the user may directly get the wanted information. Also, the knowledge base contains some new knowledge that cannot be found directly from web pages. The knowledge base can also provide more relevant information than search engines. Even if the user cannot direct find the desired information, the knowledge can help him/her to refine search engine results.

[0016] Further, the present invention comprises a text knowledge representation method. Text knowledge is represented as a weighted network with each phrase as a node of the network. The connection weights of the network are automatically trained.

[0017] Also, the present invention comprises a knowledge search method that provides a list of ranked phrases that are related to a query.

[0018] Furthermore, the present invention comprises a knowledge classification method that classifies the phrases into predefined classes. The retrieved phrases in a same class are displayed together for a query.

BRIEF EXPLANATION OF THE DRAWINGS

[0019]FIG. 1 shows the processes of building an association knowledge base.

[0020]FIG. 2 shows text knowledge representation with a network structure.

[0021]FIG. 3 shows the methods of generating phrase list.

[0022]FIG. 4 shows phrase classification methods.

[0023]FIG. 5 shows the processes of phrase knowledge base construction.

[0024]FIG. 6 shows processes of searching a query.

[0025]FIG. 7 shows an example of searching a word.

[0026]FIG. 8 shows the knowledge base aided search engine.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0027] A preferred embodiment of the knowledge base construction method of the present invention is illustrated in FIG. 1. In the beginning, a large amount of documents 101 is collected. The documents can be any files that include text information, such as internet/intranet web pages, e-mails, Word format documents, PDF documents, etc.

[0028] The text extraction (or text parser) 102 will filter out document format and other non-text information to get pure text information in the documents. The text information is stored text files 103. The Phrase List 104 is composed as FIG. 3.

[0029] With the text files, first, Sentence Segmentation 105 is used to segment each file to sentences or a small sequence of words.

[0030] Sentence Segmentation 105 includes following steps:

[0031] 1) Open a new text file of 103 and set current position at beginning of the file.

[0032] 2) A new sentence is set as empty string.

[0033] 3) Read a word from the text file and append the word to the sentence. (a word is defined as a string of characters without space or mark). Move the current position after the word.

[0034] 4) If the number of words in the sentence is greater than a predetermined value or a sentence end mark “.” is found, go to 5). Otherwise go to 3).

[0035] 5) Save the sentence.

[0036] If the current position is at the end of the text file and the file is the last file of 103, go to 6).

[0037] If the current position is at the end of text file and the file is not the last file of 103, go to 1).

[0038] Otherwise, go to 2).

[0039] 6) End.

[0040] After Sentence Segmentation, a sentence S is further segmented into phrases by following Phrase Segmentation 104 methods:

[0041] 1) Create an empty phrase set PS.

[0042] 2) nSize is set as the number of the words in the sentence S.

[0043] 3) Phrases P and P1 are assigned as empty strings.

[0044] 4) Set bMultiWords=FALSE;

[0045] 5) Set I=0;

[0046] 6) If I<nSize, I=I+1, go to 7); otherwise go to 11)

[0047] 7) If P is not an empty string, set bMultiWords=TRUE, append the Ith word in S to P.

[0048] 8) If P is not in the Phrase List 104, go to 9), otherwise go to 10)

[0049] 9) If P1 is not empty, add P1 to PS.

[0050] Phrases P and P1 are assigned as empty strings.

[0051] If bMultiWords is TRUE, I=I−1,

[0052] set bMultiWords=FALSE. Go to 6).

[0053] 10) Append the Ith word in S to P1.

[0054] 11) If P1 is in the Phrase List 104, add P1 to PS, end.

[0055] After sentence segmentation and phrase segmentation, Phrase Sets 109 are generated. Then, a Training Phrase Association 107 algorithm is applied to the Phrase Sets 106 to build an Association Knowledge Base 108.

[0056] The association knowledge base is represented as a weighted network structure shown in FIG. 2. Each phrase is represented by a node 201 of the network. Two related phrases have one or two connections 202 with weights to represent the strength of the connections. The network is saved to hard disk using a structure such as B-Tree. In memory, the network is implemented with a tree structure (for example, using map with STL) or hash table.

[0057] The Training Phrase Association 107 comprises steps:

[0058] 1) Create an empty phrase association network N.

[0059] 2) Count number of each phrase that appears in the Phrase Sets 106.

[0060] 3) For each phrase set in 106, do

[0061] 4) For each pair of phrases in a phrase set, Pi and Pj, where Pi is not equal to Pj, do

[0062] 5) If connection weight Wij between Pi and Pj exists in N, set Wij=Wij+1;

[0063] Otherwise, add a new connection weight Wij into N and set Wij=1.

[0064] Training Phrase Association 107 also includes a network pruning procedure to get ride of weak connections in the association network N. Let Ci is the total counts of phrase Pi and Ci is the total counts of phrase Pj.

[0065] If Wij/Ci<T and Wij/Cj<T, then remove weight Wij from N, where T is a predetermined pruning threshold.

[0066]FIG. 3 shows three methods of composing Phrase List 104. First, phrases are automatically extracted from Text Files 103 using Phrase Extraction 301 method. Also, phrases can be downloaded from Internet/intranet as shown in 302. Another method of composing Phrase List 104 is user's inputs 303.

[0067] The Phrase Extraction 301 further comprises

[0068] a. Add words to the Phrase List 104:

[0069] 1) Open a new text file of 103, set current position at beginning of the file.

[0070] 2) Read a string before a space or a mark. Move the current position to the end of the string.

[0071] 3) If the length of string is greater than a predetermined value, go to 2). If the string only includes letters from “a” to “z” or “A” to “Z”, add the string to the Phrase List 104. If the current position is not at the end of the file, go to 2).

[0072] 4) If the current position is at end of the last file in 103, end. If the current position is at end of the file and the file is not the last file in 103, go to 1).

[0073] b. Learn phrases with multiple words from the Text Files 103:

[0074] 1) Open a new text file of 103, set current position at beginning of the file.

[0075] 2) Read two consecutive strings from the file Pi and Pj until the end of the last file.

[0076] 3) If Pi and Pj are in the Phrase List 104, Wij=Wij+1; Go to 2).

[0077] 4) Prune weights: if Wij/Ci<T and Wij/Cj<T, then remove weight Wij from N, where T is a pruning threshold.

[0078] 5) Add new phrases to the Phrase List 104: for each weight, if Wij exists, add a new phrase Pi Pj to the Phrase List.

[0079] 6) Repeat above steps 1) to 5) until no more new phrase can be added.

[0080] c. Remove commonly used words from the Phrase List 104, such as: a, the, of, would, have, that, be, go, I, me, etc.

[0081]FIG. 4 shows the phrase classification methods. The automatic classification method 401 can be used for phrases such as people, companies with manual class code correction 402. The class codes of phrases can also be downloaded 403 from internet/intranet when the phrases are downloaded in 302. In addition, class codes can be assigned manually 405. Some phrases in 104 may not be classified. The phrases without classification are assigned class code 0. The Classified Phrase List 404 comprises the Phrase List 104 and class code information.

[0082] The Classified Phrase List 404 is sorted and can be saved in hard disk. The phrase list can be loaded into memory when system is training a knowledge base or searching the trained knowledge base.

[0083]FIG. 5 shows methods to build a Phrase Knowledge Base, which comprises,

[0084] 1) A phrase knowledge base is represented as a weighted network.

[0085] 2) Each phrase is represented by a node of the network.

[0086] 3) For each string Pj in the Phrase List 104, do:

[0087] for each phrase Pi that is a sub-string of phrase Pj, set Wij=Cj and add Wij to the network.

[0088]FIG. 6 shows steps of searching a query. For an entered query 601, the Phrase Segmentation 106 method is applied to get all phrases 603 in the query. Then, the Association Search Engine 604 searches the Association Knowledge Base 108 to get the Related Phrases 606 that are related to the query phrases 603. In step 607, the Related Phrases 606 are classified using the Classified Phrase List 404 to get final Searched Phrases with Class Codes 608. On the other hand, the Phrase Search Engine 605 searches the Phrase Knowledge Base 502 to get the phrases that includes at least one query phrase in 603. The phrases searched by Phrase Search Engine 605 are assigned a special class code in 608.

[0089] The Association Search Engine 604 further comprises steps:

[0090] 1) nSize is set as the number of the query phrases in 603.

[0091] 2) Create an empty phrase and rank value set PS.

[0092] 3) Set I=0;

[0093] 4) If I<nSize, I=I+1, go to 5); otherwise go to 8).

[0094] 5) Get the Ith phrase Pi in 603.

[0095] 6) Get a list of phrases PL that connect to Pi and the corresponding connection weights from the association knowledge base 108.

[0096] 7) For each phrase Pj in PL, if Pj is not in PS, add Pj to PS and set the rank value of Pj as a rank function ƒ(Wij, Cj), where Wij is the connection weight between phrase Pi and Pj and Cj is the total count of Pj.

[0097] If Pj is in PS, the rank value of Pj is increased into B+ƒ(Wij,Cj), where B is a predetermined bonus number for multiple connections.

[0098] A simple rank function can be set as:

ƒ(Wij,Cj)=Wij.

[0099] Another rank function is also useful:

ƒ(Wij,Cj)=10*Wij/( sqrt(log(Cj+1))+1),

[0100] where sqrt is square root.

[0101] 8) Sort the phrases in PS based on the rank values with descending order.

[0102] The Phrase Search Engine 605 follows the same steps as the Association Search Engine 604 by only replacing the association knowledge base 108 with the phrase knowledge base 502 in step 6).

[0103]FIG. 7 shows an example of searching a word “Microsoft”. After user enters “Microsoft” 701 and starts the search, the phrases that include “Microsoft” are presented in 702. The related people and related companies are presented in 703 and 704 respectively.

[0104]FIG. 8 shows that the knowledge base can help a search engine to refine search results using knowledge base search results. For a query 601, the Knowledge Base Search 801 will give a list of Classified Phrases 803 and Search Engine 802 will displays a list of Web Pages 804. In 804, a user can select one or more of the searched phrases to add to the query, then search the knowledge bases and web pages again to get new phrases and web pages.

CONCLUSION, RAMIFICATION, AND SCOPE

[0105] Accordingly, the reader will see the invention of the knowledge based search using text mining and machine learning methods can largely improve internet/internet and document search efficiency. In this way, a user may directly get the wanted information and doesn't need to scan web pages. The text mining method can also extract some new knowledge that cannot be found directly from web pages. The knowledge base can provide more relevant information than search engines. In addition, the knowledge base can help search engine refine search results. Since the knowledge bases are built automatically using the invented text mining method, the cost of building such a knowledge base can be very lower, the size of the knowledge base can be much bigger, and building time can be much shorter in comparing with building directories or knowledge bases by human beings.

[0106] Although the description above contains many specificities, these should not be construed as limiting the scope of the invention, but as merely providing illustrations of some of the presently preferred embodiments of the invention. For example, the invention can apply any languages; the knowledge base can be built using different supervised or unsupervised clustering algorithms; phrases and knowledge base can be stored in memory or hard disk using different data structure; the knowledge base can be integrated with search engines in different ways; Also, the knowledge base can be integrated with other software such database, CRM, ERP, etc.

[0107] Thus the scope of the invention should be determined by appended claims and their legal equivalents, rather than by the examples given. 

I claim:
 1. A method of text mining for automatically building knowledge base, comprising the steps of: (a) parsing selected from the group consisting of internet/intranet web pages and text documents so as to generate text files that only include a sequence of words, (b) extracting a plurality of phrases from selected from the group consisting said text files and said web pages, (c) representing said knowledge base as a weighted network, (d) learning weights between said phrases of said network by using said text files, whereby said knowledge base is trained as said weighted network using the said text files.
 3. The method of claim 1 above, wherein said phrases comprise a sequence of words.
 4. The method of claim 1 above, wherein said phrases are classified into predefined class codes automatically using predetermined classification algorithms.
 5. The method of claim 1 above, wherein said phrases are classified into predefined class codes manually.
 6. The method of claim 1 above, wherein said phrases have class codes that are downloaded from web pages.
 7. The method of claim 1 above, wherein the step of extracting said phrases is a procedure of leaning said phrases from said text files.
 8. The method of claim 1 above, wherein the step of extracting said phrases is a procedure of downloading said phrases from web pages.
 9. The method of claim 1 above, wherein said knowledge base is an association knowledge base, comprising of: (a) representing each phrase by a node of said network, (b) representing relationships of two related phrases as one or two weighted connections of said network.
 10. The method of claim 1 above, wherein said knowledge base is a phrase knowledge base, comprising of: (a) representing each phrase by a node of said network, (b) representing relationship of phrase one and phrase two that contains the phrase one as a weighted connection which is determined by the total number of the phrase two in said text files.
 11. The method of claim 1 above, wherein said network is implemented with selected from group of tree data structure and hash table data structure.
 12. The method of claim 1 above, wherein said network is implemented with a B-Tree data structure.
 13. The method of claim 1 above, wherein said learning weight step further comprising the steps of: (a) segmenting said text file to a plurality of word sequences, (b) segmenting said word sequences to a set of phrases, (c) modifying the weights between the said phrases of said network according to predetermined functions.
 14. The method of claim 1 above, wherein said knowledge base comprises said phrases, said network, said weights of said network, and class codes of said phrases.
 15. A method of knowledge based search engine by using text mining methods, comprising, (a) building a knowledge base automatically from text documents by using text mining algorithms, (b) searching said knowledge base so that to provide related knowledge for a query, (c) displaying the searched knowledge
 16. The method of claim 15 above, wherein said searching knowledge base step further comprising the steps of searching an association knowledge base: (a) segmenting said query to get all input phrases in said query, (b) searching said association knowledge base to get a second plurality of phrases which are related to the input phrases in said query, (c) ranking said second plurality of phrases with a predetermined function.
 17. The method of claim 15 above, wherein said searching knowledge base step further comprising the steps of searching a phrase knowledge base: (a) segmenting said query to get all input phrases in said query, (b) searching said phrase knowledge base to get a plurality of phrases which includes the phrases in said query, (c) ranking said phrases with a predetermined function.
 18. The method of claim 15 above, wherein said knowledge is a plurality of phrases which are classified and ranked, thereby the said phrases with the same class code are displayed together; the displaying order for phrases in a class is determined by the ranking order of the phrases.
 19. A method of helping a search engine to refine search results using knowledge base search results, comprising the steps of: (a) presenting knowledge searched from a knowledge bases for a query, (b) presenting a plurality of web pages searched by said search engine for said query, (c) adding the searched knowledge to said query, (d) searching said knowledge base and web pages again to get new knowledge and web pages.
 20. The method of claim 19 above, wherein said knowledge base is selected from an association knowledge base and a phrase knowledge base. 